<include file="Common/common" />

<body>
	
	<div class="layui-tab-item layui-show">
		<div class="layui-main">
			<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
			  	<legend>投注积分->中心积分</legend>
			</fieldset>

			<form class="layui-form" id="retCen-form" action="">
				<div class="layui-form-item">
					<div class="layui-form-mid layui-word-aux">您当前的投注积分:<span style="color: red;">{$score_betting}</span>,中心积分:<span style="color: red;">{$score_center}</span>,当前转换比例 <span style="color: red;">1:1</span></div>
					<div class="layui-form-item">
						<label class="layui-form-label">转换数量</label>
						<div class="layui-input-block">
							<input type="number"  name="retCen" lay-verify="required" min="0" max="{$score_betting}" step="0.01" onkeyup="checknum(this);" autocomplete="off" placeholder="最大可转换{$score_betting}" class="layui-input">
						</div>
					</div>
					<div class="layui-form-item">
						<div class="layui-input-block" style="margin-left: 105px;">
							<button class="layui-btn" lay-submit="" lay-filter="btn-retCen">确定</button>
						</div>
						<div class="layui-form-mid layui-word-aux">
							投注积分转回中心是最后一次分配任务的1.9-2.2倍之间,必须一次性全额转换
						</div>
					</div>
				</div>
			</form>
		</div>
	</div>
</body>

<script type="text/javascript">
	// 验证数字
   	function checknum(obj){   
     	if(/^\d+\.?\d{0,2}$/.test(obj.value)){
        	obj.value = obj.value;
     	}else{
        	obj.value = obj.value.substring(0,obj.value.length-1);
     	}     
   	}
</script>
<include file="Common/footer" />